package net.cl.db.sql.dialect;

import net.cl.db.Constants.DBTYPE;

public class SqliteDialect extends Dialect {

	@Override
	public DBTYPE getDbType() {
		return DBTYPE.SQLITE;
	}

	@Override
	public String lastInsertSql(String sql) {
		return "select LAST_INSERT_ROWID() as newid;";
	}

	@Override
	public String getPagingSql(String sql, int start, int rows) {
		return sql + " Limit " + start + " Offset " + rows + ";";
	}

}
